www.gusucode.com > DuomiCms多米影视管理系统php源程序 v1.21源码程序 > DuomiCms V1.21 UTF-8 20151109/upload/news/index.php
<?php require_once(dirname(__FILE__)."/../duomiphp/common.php"); require_once(duomi_INC."/core.class.php"); echoIndex(); function echoIndex() { global $cfg_iscache,$t1;; $cacheName="parsed_news"; $templatePath="/duomiui/".$GLOBALS['cfg_df_style']."/".$GLOBALS['cfg_df_html']."/newsindex.html"; if($cfg_iscache){ if(chkFileCache($cacheName)){ $indexStr = getFileCache($cacheName); }else{ $indexStr = parseIndexPart($templatePath); setFileCache($cacheName,$indexStr); } }else{ $indexStr = parseIndexPart($templatePath); } $indexStr=str_replace("{duomicms:member}",front_member(),$indexStr); echo str_replace("{duomicms:runinfo}",getRunTime($t1),$indexStr) ; } function parseIndexPart($templatePath) { global $mainClassObj; $content=loadFile(duomi_ROOT.$templatePath); $content=$mainClassObj->parseTopAndFoot($content); $content=replaceCurrentTypeId($content,-444); $content=$mainClassObj->parseHistory($content); $content=$mainClassObj->parseSelf($content); $content=$mainClassObj->parseGlobal($content); $content=$mainClassObj->parduomireaList($content); $content=$mainClassObj->parseNewsAreaList($content); $content=$mainClassObj->parseMenuList($content,"",$currentTypeId); $content=$mainClassObj->parseVideoList($content,$currentTypeId); $content=$mainClassObj->parseNewsList($content,$currentTypeId); $content=$mainClassObj->parseLinkList($content); $content=$mainClassObj->parseIf($content); return $content; } ?>